package com.practice.springboot.Controller;

import com.practice.springboot.Repository.Mybatis.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/jdbc")
public class JdbcHandler {
    @Autowired
    UserRepository  userRepository;
    @GetMapping("/findByName")
    public String findByName( String name)
    {
        return userRepository.findByName(name).toString();
    }
}
